package com.cfpamf.athean.rabbit.mq.plus.repository;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cfpamf.athean.rabbit.mq.plus.domain.po.RabbitMqPlusEventTaskPO;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Andy（陈洪桥）
 * @since 2022-11-26 15:15:40
 */
public interface RabbitMqPlusEventTaskRepository extends IService<RabbitMqPlusEventTaskPO> {

    int countByEventNoAndEventCode(String eventNo, String eventTypeCode);

    RabbitMqPlusEventTaskPO selectOneByEventNoAndEventCode(String eventNo, String eventTypeCode);

    List<RabbitMqPlusEventTaskPO> queryTodoDataByStatus(List<Integer> status);

    boolean updateByEventNoAndEventCode(RabbitMqPlusEventTaskPO po);

    boolean deleteInvalidDataByDay(int day);

}
